import type { PageParams } from '@/types/home'
import type { HotResult } from '@/types/hot'

import { http } from '@/utils/https'

type hotParams = PageParams & { subType?: string }
export const getHotListAPI = (url: string, data?: hotParams) => {
  return http<HotResult>({
    url,
    data,
  })
}
